﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using CRMFramework;
using System.Collections;
using Newtonsoft.Json;
using CRMEntity;

namespace CRMBiz
{
    public static class ApplicationIncomeExpenseHandler
    {
        /// <summary>
        /// function for get selected data
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static DataTable BindDataTableForApplicationIncomeExpense(Int64 appid)
        {
            StringBuilder sql = new StringBuilder();
            DataTable dt = new DataTable();
            sql = new StringBuilder("SELECT * FROM crm_income_expence_and_repayment where app_id=" + appid.ToString());
            return dt = DBhelper.ExecuteDataset(sql.ToString()).Tables[0];
        }
    }
}
